package cn.iocoder.yudao.module.design.controller.admin.flow.vo;

import cn.hutool.core.date.DatePattern;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
* 流程信息 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class FlowBaseVO {

    @Schema(description = "房屋id")
    private Long houseId;

    @Schema(description = "设计人id")
    private Long designerId;

    @Schema(description = "流程名称")
    private String flowName;

    @Schema(description = "是否是主流程,true-主流程，false-子流程--子流程由前置任务id")
    private String isMainCd;

    @Schema(description = "归属的前置任务id")
    private Long preId;

    @Schema(description = "后置任务ids")
    private Long nextIds;

    @Schema(description = "实施前置ids")
    private String mustIds;

    @Schema(description = "任务状态,0-新建，1-就绪，2-进行中，3-挂起，4-实施完成")
    private Integer statusCd;

    @Schema(description = "流程类型 0-设计,1-采购,2-施工")
    private Integer flowCd;

    @Schema(description = "流程费用")
    private Long cost;

    @Schema(description = "开始时间")
    @DateTimeFormat(pattern = DatePattern.NORM_DATE_PATTERN)
    private Date startTime;

    @Schema(description = "完成时间")
    @DateTimeFormat(pattern = DatePattern.NORM_DATE_PATTERN)
    private Date finishTime;

    @Schema(description = "流程描述")
    private String remark;

}
